package com.byxy.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.byxy.dao.ItemsDao;
import com.byxy.entity.Items;
import com.byxy.service.ItemsService;

@Service
@Transactional
public class ItemsServiceImpl implements ItemsService {
	@Autowired
	private ItemsDao itemsDao;

	@Override
	public List<Items> find() {
		return itemsDao.find();
	}

	@Override
	public void add(Items items) {
		itemsDao.add(items);
	}

}
